<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="cms" uri="http://cms.gxsoft.com/tags-cms"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>信访查询</title>
<link href="<%=request.getContextPath()%>/css/reset.css" rel="stylesheet" type="text/css"/>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css"/>
<script language="javascript">
<!--
	var checked = false;
	function checkAll(check){
		checked = !checked;
		if(check != null){
			if(check.length){
				for(var i = 0; i < check.length; i ++){
					check[i].checked = checked;
				}
			}else{
				check.checked = checked;
			}
		}
	}
-->
</script>
</head>

<body>
<form method="post">
<table class="bordernone"width="600" height="100"align="center">
   <tr>
    <td class="bg_blue" width="100" align="right" >被举报单位：</td>
    <td width="140"><input type="text" name="empInfoName" value="${param.empInfoName}"></td>
      
    <td class="bg_blue" width="100" align="right">访问方式：</td>
    <td width="140">
    <select name="petitionInfoMode">
    <option value="">请选择</option>
    <option value="0" <c:if test="${param.petitionInfoMode == '0'}">selected</c:if>>来信</option><option value="1" <c:if test="${param.petitionInfoMode == '1'}">selected</c:if>>来访</option>
    </select>
    </td>
  </tr> 
  <tr>
    <td class="bg_blue" width="100" align="right" >信访来源：</td>
    <td width="140">
    <cms:selectAll dataType="011" name="petitionInfoSource" firstTitle="请选择.."  key="${param.petitionInfoSource}"></cms:selectAll>
    </td>
    <td class="bg_blue" width="100" align="right">类型：</td>
    <td width="140">
        <cms:selectAll dataType="006" name="petitionInfoType" firstTitle="请选择.." key="${param.petitionInfoType}"></cms:selectAll>
    </td>
  </tr> 
  <tr>
    <td class="nohover" colspan="4" align="center"><input class="buttonsearch" type="submit" value="查询">&nbsp; <input class="buttonreset" type="reset" value="重置" ></td>
  </tr>
</table>
 </form>

<table width="100%" border="1">
<tr><td colspan="8" class="nohover"><input type="button" class="buttonadd" onClick="javascript:window.location.href='<%=request.getContextPath()%>/VisiteInfo.do?method=toAdd'" value="添加"/></td></tr>
  <tr>
    <th width="30">序号</th>
    <th width="60">详细</th>
    <th width="60">信访编号</th>
    <th width="100">处理单位</th>
    <th width="100">被举报单位</th>
    <th width="80">时间</th>
    <th width="60">操作</th>
  </tr>
  <c:forEach items="${list}" var="prod" varStatus="lineInfo">
  <tr <c:if test="${lineInfo.count % 2 == 0}">class="blue"</c:if>>

	<td>${pageNum + lineInfo.count}</td>
	<td><a href="<%=request.getContextPath()%>/VisiteInfo.do?method=detail&vid=${prod.petitionInfoId}">详细</a></td>
    <td>${prod.petitionInfoRegister}</td>
    <td>${prod.petitionInfoCompany}</td>
    <td>${prod.employerInfo.empInfoName}</td>
    <td><fmt:formatDate pattern="yyyy-MM-dd" value="${prod.petitionInfoTime}"/></td>
    <td>
    <input type="button" class="buttonmodify" onClick="javascript:window.location.href='<%=request.getContextPath()%>/VisiteInfo.do?method=toUpdate&petitionInfoId=${prod.petitionInfoId}&page=${intPage}'" value="修改"/>
    </td>
    </tr>
</c:forEach>
  
  <tr>
    <td class="nohover" colspan="5" align="left">&nbsp;
    <form name="pageForm" method="post" action="<%=request.getContextPath()%>/VisiteInfo.do?method=list">
    <input type="hidden" name="empInfoName" value="${param.empInfoName}">
    <input type="hidden" name="petitionInfoType" value="${param.petitionInfoType}"/>
    <input type="hidden" name="petitionInfoMode" value="${param.petitionInfoMode}">
    <input type="hidden" name="petitionInfoSource" value="${param.petitionInfoSource}"/>
    <c:out value="${foot}" escapeXml="false"/>
    </form>
    </td>
  </tr>
</table>
</body>
</html>
